<html>
<head><meta charset="utf-8"><title>name resolution/typechecking · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/name.20resolution.2Ftypechecking.html">name resolution/typechecking</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199697783"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/name%20resolution/typechecking/near/199697783" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/name.20resolution.2Ftypechecking.html#199697783">(Jun 04 2020 at 01:53)</a>:</h4>
<p>How does the compiler keep track of what variable an identifier refers to and what the type of an expression is? Is it stored in a central location, e.g., <code>HirId #56</code> refers to <code>DefId #42</code> or something like that?</p>



<a name="199697794"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/name%20resolution/typechecking/near/199697794" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/name.20resolution.2Ftypechecking.html#199697794">(Jun 04 2020 at 01:53)</a>:</h4>
<p>Oops, I linked to GitHub</p>



<a name="199709900"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/name%20resolution/typechecking/near/199709900" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/name.20resolution.2Ftypechecking.html#199709900">(Jun 04 2020 at 06:34)</a>:</h4>
<p>The types are computed by <code>tcx.typeck_tables_of</code>.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>